package com.ywqf_api.dto.exc;

import com.ywqf_api.base.BaseAPIExcution;
import com.ywqf_api.enums.RegEnum;

/**
 * Created by Administrator on 2018/3/28 0028.
 */
public class RegExcution extends BaseAPIExcution {
    public RegExcution(RegEnum returnEnum, Object data) {
        this.code = returnEnum.getCode();
        this.message = returnEnum.getMessage();
        this.data = data;
    }

    public RegExcution(RegEnum returnEnum) {
        this.code = returnEnum.getCode();
        this.message = returnEnum.getMessage();
    }


}
